<?php

/**
 * WeEngine System
 *
 * (c) We7Team 2021 <https://www.w7.cc>
 *
 * This is not a free software
 * Using it under the license terms
 * visited https://www.w7.cc for more details
 */

if (!function_exists('json_success')) {
    function json_success(string $message = '', array $data = []): \think\response\Json
    {
        return json([
            'code'    => 0,
            'message' => $message,
            'data'    => $data
        ]);
    }
}
